<!-- forget 页面内容 -->
<section class="forget" ng-controller="forgetCtrl">
  <div class="container">
    <div class="row">
      <div class="col-sm-offset-3 col-md-6 col-sm-6 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            <div class="row">
              <div class="col-md-offset-1 title">重置密码</div>
            </div>
          </div>
          <div class="panel-body">
            <form name="forgetform" class="forgetform" role="form" autocomplete="false" novalidate ng-submit="forget(forgetform.$invalid, data);">
                <div class="form-group-password">
                    <label for="password" class="col-sm-3 control-label col-xs-5 col">新密码</label>
                    <input type="password" id="password" ng-model="data.password" name='password' class="form-control" ng-pattern="/^\S{6,20}$/" autocomplete="false" placeholder="* * * * * *" required>
                </div>
                <div class="form-group error-container" ng-show="isforget && (forgetform.password.$error.pattern || forgetform.password.$error.required)">
                    请输入有效密码！
                </div>

                <div class="form-group-password">
                  <label for="confirm_password" class="col-sm-3 control-label col-xs-5 col">确认密码</label>
                    <input type="password" id="confirm_password" ng-model="data.confirm_password" name='confirm_password' class="form-control" autocomplete="false" compare-to='data.password' placeholder="* * * * * *" required>
                </div>
                <div class="form-group error-container" ng-show="isforget && (forgetform.confirm_password.$error.compareTo || forgetform.confirm_password.$error.required)">
                    二次密码输入不一致
                </div>

                <div class="button-form-group">
                  <button type="submit" class="btn btn-default">立即重置</button>
                </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
